{extend name="public\basic"}
{block name="main"}
<div>
    {auth:button rule="home/merauth/add" rules="$buttons"}<button action="dialog" action-url="{:url('add')}" action-title="新增权限组" class = "layui-btn layui-btn-success">新增</button>{/auth:button}
</div>
<table class = "layui-table">
    <thead>
    <tr>
        <th>ID</th>
        <th>权限组名称</th>
        <th>备注</th>
        <th>添加时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {php}$k=0;{/php}
    {volist name="list" id="v"}
    <tr>
        <td>{++$k}</td>
        <td>{$v.auth_name}</td>
        <td>{$v.auth_remark}</td>
        <td>{:date('Y-m-d H:i:s',$v.addtime)}</td>
        <td>
            {auth:button rules="$buttons" rule="home/merauth/auth_index"}<a href = "{:url('auth_index', 'id='.$v['id'])}"><i class="layui-icon layui-icon-about"></i></a>&nbsp;{/auth:button}
            {auth:button rules="$buttons" rule="home/merauth/add"}<a href="javascript:;" action="dialog" action-url="{:url('add', 'id='.$v['id'])}"><i class="layui-icon layui-icon-edit"></i></a>&nbsp;{/auth:button}
            {auth:button rules="$buttons" rule="home/merauth/del"}<a href="javascript:;" action="del" title="删除" action-url="{:url('del','id='.$v['id'])}"><i class="layui-icon layui-icon-delete" ></i></a>{/auth:button}
        </td>

    </tr>
    {/volist}
    </tbody>
</table>
{$list->render()}
{/block}
